<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Plan zajęć</title>
</head>
<body>
<center>
<h2>Plan zajęć</h2>
	<table width="80%" border="1" bordercolor="#015AFE">
	<tr>
			<th>Godzina/Dzień</th>
			<th>Poniedziałek</th>
			<th>Wtorek</th>
			<th>Środa</th>
			<th>Czwartek</th>
			<th>Piątek</th>
		</tr>
		<c:forEach items="${grafik}" var="item">
			<tr>
				<td>10</td>
				<td>${item.pn10}</td>
				<td>${item.wt10}</td>
				<td>${item.sr10}</td>
				<td>${item.cz10}</td>
				<td>${item.pt10}</td>
			</tr>
			<tr>
				<td>12</td>
				<td>${item.pn12}</td>
				<td>${item.wt12}</td>
				<td>${item.sr12}</td>
				<td>${item.cz12}</td>
				<td>${item.pt12}</td>
			</tr>
			<tr>
				<td>14</td>
				<td>${item.pn14}</td>
				<td>${item.wt14}</td>
				<td>${item.sr14}</td>
				<td>${item.cz14}</td>
				<td>${item.pt14}</td>
			</tr>
			<tr>
				<td>16</td>
				<td>${item.pn16}</td>
				<td>${item.wt16}</td>
				<td>${item.sr16}</td>
				<td>${item.cz16}</td>
				<td>${item.pt16}</td>
			</tr>
			<tr>
				<td>18</td>
				<td>${item.pn18}</td>
				<td>${item.wt18}</td>
				<td>${item.sr18}</td>
				<td>${item.cz18}</td>
				<td>${item.pt18}</td>
			</tr>	
		</c:forEach>
		<tr>
			<td colspan="2" ><a href="edit?id=<c:out value="${item.id}"/>">Zmień plan</a></td>
		</tr>
	</table>
	${item.pn10}
</center>
</body>
</html>